<?php
include_once 'icn/config.php';
include_once 'icn/mysql.class.php';

$mysql = new mysql();
$mysql->open($dbconfig);
$orderlist = $mysql->select('*', 'order');
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>

<body>
<h3>订单管理</h3>
<table width="98%" border="0" align="center">
<thead>
	<tr bgcolor="#D6EEBD">
  	<th >ID</th>
    <th>货号</th>
    <th>款号</th>
    <th>品名</th>
    <th>装箱数</th>
    <th>创建时间</th>
    <th>操作</th>
    </tr>
</thead>
 <tbody>
 <?php 
 	foreach ($orderlist as $key => $value) {
 		echo "<tr bgcolor='#D9F4F7'>
    			<td>$value[id]</td>
    			<td>$value[huohao]</td>
    			<td>$value[kuanhao]</td>
    			<td>$value[pinming]</td>
    			<td>$value[zhuangxiangshu]</td>
    			<td>$value[newdate]</td>
    			<td><a href='order.php?do=edit&id=$value[id]'>编辑</a>|<a href='banshichu.php?do=select&order_id=$value[id]'>查看</a></td>
    		</tr>";
 	}
 ?>
  </tbody>
</table>

</body>
</html>
